595efe9aab884bab233c61278f00ef325446d268,spring-core/src/main/java/org/springframework/core/GenericTypeResolver.java,GenericTypeResolver,resolveParameterType,#MethodParameter#Class#,78

Before Change


		Assert.notNull(clazz, "Class must not be null");
		Map<TypeVariable, Type> typeVariableMap = getTypeVariableMap(clazz);
		Type rawType = getRawType(genericType, typeVariableMap);
		Class<?> result = (rawType instanceof Class ? (Class) rawType : methodParam.getParameterType());
		methodParam.setParameterType(result);
		methodParam.typeVariableMap = typeVariableMap;
		return result;

After Change


		Assert.notNull(clazz, "Class must not be null");
		methodParam.resolveClass = clazz;
		methodParam.setParameterType(ResolvableType.forMethodParameter(methodParam, clazz).resolve());
		return methodParam.getParameterType();
	}

	/**